<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title id="t1">14-v-for 列举子项</title>
</head>

<body>
	<h2>14-v-for 列举子项</h2>
	<div id="app1" class="capp1">
		<div v-show="isShow">{{ name }}</div>
		<div v-show="isShow">{{ msg }}</div>
		<ul>
			<!-- 条件判断 -->
			<li v-for=" score in scores">{{score}}</li>
		</ul>
	</div>

	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	<script>
		var data = {
			msg: "Hi There!",
			name: "Sa_Zhang",
			scores: [9, 5, 7, 3, 6, 1],
			isShow: false // 可见性设置
		}
		// new Vue({}) 大小写敏感
		var app = new Vue({
			el: "#app1",
			data: data
		})
	</script>

</body>

</html>